package ua.kpi.javatraining.university;

import java.text.DateFormat;
import java.util.Date;
import java.util.Locale;

/**
 * @author Vasily Yatsenko
 */
public class Subject {
    private final String name;

    private Date examination;

    public Subject(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public String getExamination() {
        return DateFormat.getDateInstance(DateFormat.MEDIUM, Locale.ENGLISH).format(examination);
    }

    public void setExamination(Date examination) {
        this.examination = examination;
    }
}
